package com.xyf.blog.util.test;

public class Children extends father{
    public void cat(){
        System.out.println("调用了子类的cat方法");
        super.name="15665";
        super.show();
    }

    public static void main(String[] args) {
        Children children = new Children();
        System.out.println(children.name);
        children.name="4844";
        System.out.println("-----------");
        System.out.println(children.name);
        father father = new father();
        System.out.println(father.name);
        children.cat();
        System.out.println(father.name);
        System.out.println(children.name);

    }
}
